<?php
if (!isset($csn)){
	$csn = 0;
}
if (!isset($ssn)){
	$ssn = 0;
}
if (!isset($dsn)){
	$dsn = 0;
}

switch ($csn){
	case "8" :	//list Antibodies
	case "9" :	//list Premade siRNA
	case "10" :	//list Premade Lentivirus
	case "11" :	//list Premade Adenovirus
	case "45" :	//list Stable Cell Line
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>\n";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				if ($csn==8){echo "<li><a href='/Antibody.html' title='Antibody, Antibody Titer, Antibody Production, Antibody Definition'>&nbsp;Antibodies</a></li>\n";
							 $grouping='Antibodies';
				}elseif($csn==9){echo "<li><a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses.html' title='siRNA/shRNA/RNAi Lentivirus and Lentivector'>&nbsp;".$r['cname']."</a></li>\n";
								 $grouping='siRNA';
				}elseif($csn==10){echo "<li><a href='/Lentivirus.html' title='Premade Lentiviruses/Lentiviral Vectors'>&nbsp;".$r['cname']."</a></li>\n";
								  $grouping='Lentivirus';
				}elseif($csn==11){echo "<li><a href='/Adenovirus.html' title='Premade Adenoviruses'>&nbsp;".$r['cname']."</a></li>\n";
								  $grouping='Adenovirus';
				}elseif($csn==45){echo "<li><a href='/Stable-Cell-Line.html' title='Stable Cell Line'>&nbsp;".$r['cname']."</a></li>\n";
								  $grouping='Stable Cell Line';
				}
				$csn = $r['sn'];
				$alphabet=array (1=>'α',2=>'β',3=>'γ',4=>'δ',5=>'ε',6=>'ζ',7=>'η',8=>'θ',9=>'ι',10=>'κ',11=>'λ',
						 12=>'μ',13=>'ν',14=>'ξ',15=>'ο',16=>'π',17=>'ρ',18=>'ς',19=>'σ',20=>'τ',21=>'υ',
						 22=>'φ',23=>'χ',24=>'ψ',
						 25=>'0',26=>'1',27=>'2',28=>'3',29=>'4',30=>'5',31=>'6',32=>'7',33=>'8',34=>'9',
						 35=>'A',36=>'B',37=>'C',38=>'D',39=>'E',40=>'F',41=>'G',42=>'H',43=>'I',44=>'J',
						 45=>'K',46=>'L',47=>'M',48=>'N',49=>'O',50=>'P',51=>'Q',52=>'R',53=>'S',54=>'T',
						 55=>'U',56=>'V',57=>'W',58=>'X',59=>'Y',60=>'Z');
				$cont=1;
				if (!isset($alpha)){
					if ($csn ==45){
						$alpha = "M";
					}else{
						$alpha = "A";
					}
				}
				echo"</ul>\n";
				echo "<div id='letters'>\n";
				foreach ($alphabet as $m=>$value){
					$char_exist="select subcat.sname from subcat,chdcat where (chdcat.ssn=subcat.sn and chdcat.dname='$grouping') and sname like '".$alphabet[$m]."%' order by sname";
					$char_res=mysql_query($char_exist,$db);
					$char_rw=mysql_num_rows($char_res);
					$charname = str_replace(" / "," ",$subcatname);
					$charname = str_replace(" ","-",$charname);
					$charname = str_replace("(","",$charname);
					$charname = str_replace(")","",$charname);
					if ($char_rw>0){
						if ($alphabet[$m] == strtoupper($alpha)){
							echo "<span style='color:#FF0000; font-size:16px; font-weight:bold;'>".$alphabet[$m]."</span>&nbsp;";
						}else{
							if ($csn==8){echo "<a href=\"/Antibodies/$charname-Antibodies.html/$ssn/".str_replace("&amp;#","",htmlspecialchars($alphabet[$m]))."\">".$alphabet[$m]."</a>&nbsp;";
							}elseif($csn==9){echo "<a href=\"/$gnname-siRNA-Lentivectors-".str_replace("&amp;#","",htmlspecialchars($alphabet[$m]))."-$subcatname.html\">".$alphabet[$m]."</a>&nbsp;";
							}elseif($csn==10){echo "<a href=\"/$subcatname-Lentiviruses-".str_replace("&amp;#","",htmlspecialchars($alphabet[$m]))."-$subcatname.html\">".$alphabet[$m]."</a>&nbsp;";
							}elseif($csn==11){echo "<a href=\"/$subcatname-Adenoviruses-".str_replace("&amp;#","",htmlspecialchars($alphabet[$m]))."-$subcatname.html\">".$alphabet[$m]."</a>&nbsp;";
							}elseif($csn==45){echo "<a href=\"/$subcatname-Stable-Cell-Line".str_replace("&amp;#","",htmlspecialchars($alphabet[$m])).".html'>".$alphabet[$m]."</a>&nbsp;";
							}
							if ($cont==19){
								echo "\n<br />\n";
								$cont=1;
							}else{
								$cont++;
							}
						}
					}
				}
				echo "</div>\n";
				$ssql="select subcat.sname,subcat.sn from subcat,chdcat where (chdcat.ssn=subcat.sn and chdcat.dname='$grouping') and sname like '".$alpha."%' order by sname";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<div style='margin-top:10px;max-height:400px; overflow:auto;'>\n<ul>\n<li>\n";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>\n<li>\n<ul>\n";
						$submnu_name = $sr['sname'];
						$htmlname = str_replace(" / "," ",$submnu_name);
						$htmlname = str_replace(" ","-",$htmlname);
						$htmlname = str_replace("(","",$htmlname);
						$htmlname = str_replace(")","",$htmlname);
						if ($csn==8){echo "<li><a href=\"/$submnu_name-Antibody-Sigma-Abcam.html\" title=\"$submnu_name Antibodies\"><span style='font-size:11px;'>&nbsp;&nbsp;&#8226;&nbsp;Anti-$submnu_name Antibodies</span></a></li>\n";
							}elseif($csn==9){echo "<li><a href=\"/$submnu_name-siRNA-Lentivector-$submnu_name.html\" title=\"siRNA/shRNA/RNAi Lentivirus $submnu_name\"><span style='font-size:11px;'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name siRNA/shRNA/RNAi Lentivector</span></a></li>\n";
							}elseif($csn==10){echo "<li><a href=\"/$submnu_name-Lentivirus--$submnu_name.html\" title=\"$submnu_name Lentiviruses\"><span style='font-size:11px;'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name Lentiviral Vectors</span></a></li>\n";
							}elseif($csn==11){echo "<li><a href=\"/$submnu_name-Adenovirus--$submnu_name.html\" title=\"$submnu_name Adenoviruses\"><span style='font-size:11px;'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name Adenovirus</span></a></li>\n";
							}elseif($csn==45){echo "<li><a href=\"/$submnu_name-Stable-Cell-Line.html\" title=\"$submnu_name Cell Line\"><span style='font-size:11px;'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name Cell Line</span></a></li>\n";
							}
						echo "</ul>\n</li>\n</ul>\n";
					}
				}
				echo "</li>\n</ul>\n</div>\n";
			}
		}
		break;
	
	
	case "12" :	//list RT / PCR / qPCR
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/PCR-Taq-Polymerase-Reverse-Transcriptase-qPCR.html' title='PCR, RT-PCR and qPCR Mastermixes and Related Products'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];				
						$htmlname = str_replace(" / "," ",$submnu_name);
						$htmlname = str_replace(" ","-",$htmlname);
						$htmlname = str_replace("(","",$htmlname);
						$htmlname = str_replace(")","",$htmlname);
						switch ($ssnn){
							case 3461:
								echo "<li><a href='/qPCR-Mastermix-Plus.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3462:
								echo "<li><a href='/Reverse-Transcriptase-PCR-cDNA-Synthesis.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3463:
								echo "<li><a href='/Taq-DNA-Polymerase-PCR.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3464:
								echo "<li><a href='/PCR-Optimization-Failsafe-PCR.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3465:
								echo "<li><a href='/DNA-Stains-RNA-Dyes.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3466:
								echo "<li><a href='/dNTP-Mix-PCR.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 13993:
								echo "<li><a href='/DNA-Markers-Ladders-Standard.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
						echo "<ul>";
						echo "<li><a href='/DNase-I-Footprinting.html#dnaselink' title='DNAseI'>&nbsp;&nbsp;&#8226;&nbsp;DNaseI</a></li>";
						echo "</ul>";
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;


	case "13" : //list transfection Reagent	
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Transfection-Reagent-Protocol-Efficiency.html' title='Transfection Reagents, Fugene, Lipofectamine'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3770 :
								echo "<li><a href='/DNAfectin-Lipofectamine-2000-Transfection-Fugene.html' title='Lipofectamine, Lipofectamine 2000 siRNA, Lipofectamine 2000 Protocol, Fugene, Fugene 6'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3771 :
								echo "<li><a href='/siRNA-RNAi-shRNA-Transfection-Protocol.html' title='shRNA Transfection, Transfection siRNA'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3772 :
								echo "<li><a href='/Lentivirus-Transfection-Protocol.html' title='Lentivirus Production, Lentivirus Production Protocol, Lentivirus Transfection'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3773 :
								echo "<li><a href='/Calcium-Phosphate-Transfection-Protocol.html' title='Calcium Transfection, Calcium Phosphate Transfection, Transient Calcium Transfection'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 14040 :
								echo "<li><a href='/Protein-Transfection-Protocol.html' title='Protein Transduction, Proteins'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;

	case "14" : //list Viral Expression
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Adenovirus-Expression-Lentivirus-Expression.html' title='Viral Expression Systems'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						if ($ssnn<>13929 && $ssnn<>13930){echo "<li>&nbsp;".$sr['sname']."&nbsp;<img src='/StemCell/images/arrow-down.png' width='9' height='6' /></li>";
						}
						
						echo "<ul>";
								switch ($ssnn){
									case 3883 :
											echo "<li><a href='/Adenovirus-Expression-Systems.html' title='Adenovirus Expression Kits, RFP and Luciferase Reporter Expression, siRNA Expression, His Tag, HA Tag'>&nbsp;&nbsp;&#8226;&nbsp;Adenovirus Expression Systems</a></li>
											<li><a href='/Adenovirus-Purification-Kits.html' title='Adenovirus Titer and Purification Kits'>&nbsp;&nbsp;&#8226;&nbsp;Adenovirus Related Kits</a></li>";
										break;
									case 3884 :
											echo "<li><a href='/Lentiviral-Expression-Systems.html' title='Lentivirus Expression Kits, His Tag, HA Tag, UbC Promoter, PGK Promoter, EF1a Promoter, RFP and GFP Fusion Expression, shRNA and miRNA Expression, HSV Tk Expression'>&nbsp;&nbsp;&#8226;&nbsp;Lentivirus Expression Systems</a></li>
											<li><a href='/Lentivirus-Packaging-Systems.html' title='Lentivirus Packaging Kits'>&nbsp;&nbsp;&#8226;&nbsp;Lentivirus Packaging Systems</a></li>
											<li><a href='/Lentivirus-Purification-Kits.html' title='Lentivirus Titer and Purification Kits'>&nbsp;&nbsp;&#8226;&nbsp;Lentivirus Related Kits</a></li>";
										break;
										
									case 3885 :
											echo "<li><a href='/Retrovirus-Expression-Systems.html' title='Retrovirus Expression Kits, HA Fusion Tag, His Fusion Tag'>&nbsp;&nbsp;&#8226;&nbsp;Retro-Easy Expression Systems</a></li>
											<li><a href='/Retrovirus-Expression-Vectors.html' title='Retrovirus Vectors'>&nbsp;&nbsp;&#8226;&nbsp;Retro-Easy Vectors</a></li>
											<li><a href='/Retrovirus-Packaging.html' title='Retrovirus Related Products'>&nbsp;&nbsp;&#8226;&nbsp;Retrovirus Related Products</a></li>";
										break;
								}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
	
	case "15" : // list Cell Immortalization
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Cell-Immortalization.html' title='Cell Immortalization Products'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						$submnu = "select * from chdcat where csn='$csn' and ssn='$ssnn'";
						$submnu_res = mysql_query($submnu,$db);
						$submnu_rows = mysql_num_rows($submnu_res);
						echo "<ul>";
						if ($submnu_rows > 0){
							while ($submnu_r = mysql_fetch_array($submnu_res)){
								$submnu_name = $submnu_r['dname'];
								$dsnn = $submnu_r['sn'];
								switch ($ssnn){
									case 34 :
											echo "<li><a href='/Myc-p53-Rb-Ras-Immortalization.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 36 :
											echo "<li><a href='/SV40-Immortalization.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 37 :
											echo "<li><a href='/Cell-Immortalization-Related-Products.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 13958 :
											echo "<li><a href='/HPV-E6-E7-Immortalization.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 13964 :
											echo "<li><a href='/EBV-Immortalization.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 14051 :
											echo "<li><a href='/hTERT-Immortalization.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
								}
							}
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
	
	case "16" : // list siRNA
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/RNAi-shRNA-siRNA-Lentivirus-siRNA-shRNA-RNAi.html' title='siRNA Expression Kits and Custom Services'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3710 :
								echo "<li><a href='/RNAi-shRNA-siRNA-Lentivirus-siRNA-RNAi-shRNA.html' title='Custom siRNA Lentivirus Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3712 :
								echo "<li><a href='/RNAi-shRNA-siRNA-Expression-Vector.html' title='siRNA Expression System Kit'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
		
	case "17" : // list Tag Antibody from database userdb_35872_2
	case "18" :
		//mysql_close($db);
		//include ("conn.php");
		if ($csn == '17'){
			$sql="select * from category where sn='17'";
		}
		if ($csn == '18'){
			$sql="select * from category where sn='18'";
		}
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			$r=mysql_fetch_array($res);
			if ($csn==17){
				echo "<li><a href='/Tag-Antibody.html' title='Tag Antibodies'>&nbsp;".$r['cname']."</a></li>";
			}elseif ($csn==18){echo "<li><a href='/Loading-Control-Antibodies.html' title='Loading Controls, Loading Control Western Blot, Loading Control Western Blot'>&nbsp;".$r['cname']."</a></li>";
			}
			$csn = $r['sn'];
			$ssql="select * from subcat where csn=$csn";
			$sres=mysql_query($ssql,$db);
			$srw=mysql_num_rows($sres);
			echo "<ul>";
			echo "<ul>";
			if ($srw>0){
				while ($sr=mysql_fetch_array($sres)){
					$ssnz = $sr['sn'];
					$dsnn = $sr['sn'];
					$sname = $sr['sname'];
					$htmlname = str_replace(" / "," ",$sname);
					$htmlname = str_replace(" ","-",$htmlname);
					$htmlname = str_replace("(","",$htmlname);
					$htmlname = str_replace(")","",$htmlname);
					//display sub menus.
					if ($csn == 17){
						switch ($ssnz){
							case "3937":
								echo "<li><a href='/His-Tag-Antibody.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3938":
								echo "<li><a href='/HA-Tag-Antibody-Roche.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3939":
								echo "<li><a href='/GFP-Antibody-Roche.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3940":
								echo "<li><a href='/GST-Tag-Antibody-Santa-Cruz.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3941":
								echo "<li><a href='/Myc-Tag-Antibody-Santa-Cruz.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3942":
								echo "<li><a href='/V5-Antibody-Invitrogen.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3943":
								echo "<li><a href='/Flag-Tag-Antibody.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3944":
								echo "<li><a href='/RFP-Antibody-Rochland.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3946":
								echo "<li><a href='/MBP-Antibody-Western.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "3947":
								echo "<li><a href='/VSVG-Antibody-VSVG-Tag.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "11536":
								echo "<li><a href='/YFP-Tag-Antibody-Protein.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
							case "11537":
								echo "<li><a href='/CFP-Tag-Antibody-Protein.html' title='$sname Antibodies'>&nbsp;&nbsp;&#8226;&nbsp;$sname Antibodies</a></li>";
								break;
						}
					}
					if ($csn == 18){
						switch ($ssnz){
							case 3948: echo"<li><a href='/GAPDH-Antibody-Sigma.html' title='Anti-GAPDH Antibody, GAPDH, GAPDH Antibody, GAPDH MW.'>&nbsp;&nbsp;&#8226;&nbsp;$sname</a></li>";
							break;
							case 3949: echo"<li><a href='/Beta-Actin-Antibody.html' title='Anti-β-Actin Antibody, Beta-Actin'>&nbsp;&nbsp;&#8226;&nbsp;$sname</a></li>";
							break;
							case 3950: echo"<li><a href='/Beta-Tubulin-Antibody-Sigma.html' title='Anti-β-Tubulin Antibody, Beta Tubulin Molecular Weight, Beta Tubulin Sigma'>&nbsp;&nbsp;&#8226;&nbsp;$sname</a></li>"; 
							break;
						}
					}
				}
			}
			echo "</ul>";
			echo "</ul>";
		}
		echo "</ul>";
		//mysql_close($db);
		//include ("conn.php");
		break;
		
	case "19" :	//list Secondary Antibody
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Secondary-Antibodies.html' title='Secondary Antibodies'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul><ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						$submnu_name = $sr['sname'];
						$htmlname = str_replace(" / "," ",$submnu_name);
						$htmlname = str_replace(" ","-",$htmlname);
						$htmlname = str_replace("(","",$htmlname);
						$htmlname = str_replace(")","",$htmlname);
						switch ($ssnn){
							case 3481:
								echo "<li><a href='/IgG-Fraction-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3482:
								echo "<li><a href='/DyLight-Conjugated-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3483:
								echo "<li><a href='/IRDye-Conjugated-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3484:
								echo "<li><a href='/Phycoerthrin-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3485:
								echo "<li><a href='/Cyanine-Conjugated-Secondary-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3486:
								echo "<li><a href='/Agarose-Conjugated-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3513:
								echo "<li><a href='/Fluorescein-Conjugated-Secondary-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3514:
								echo "<li><a href='/Texas-Red-Conjugates-Secondary-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3517:
								echo "<li><a href='/HRP-Secondary-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3518:
								echo "<li><a href='/AP-Conjugated-Secondary-Antibodies.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						//echo "<li><a href='/Secondary-Antibodies/$htmlname-Secondary-Antibodies.html/$ssnn' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
					}
				}
				echo "</ul></ul>";
			}
		}
		echo "</ul>";
		break;
		
	case "20" : //list DNA Purification
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Plasmid-DNA-Purification.html' title='DNA Purification Kits'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						$submnu = "select * from chdcat where csn='$csn' and ssn='$ssnn'";
						$submnu_res = mysql_query($submnu,$db);
						$submnu_rows = mysql_num_rows($submnu_res);
						echo "<ul>";
						if ($submnu_rows > 0){
							while ($submnu_r = mysql_fetch_array($submnu_res)){
								$submnu_name = $submnu_r['dname'];
								$dsnn = $submnu_r['sn'];
								switch ($ssnn){
									case 3473 :
										echo "<li><a href='/Plasmid-Miniprep.html' title='Mini DNA Kit, Mini DNA Kit Qiagen, DNA Extraction'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 3474 :
										echo "<li><a href='/PCR-Purification-Cleanup.html' title='PCR Cleanup, PCR Product Purification, PCR Purification'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 3475 :
										echo "<li><a href='/DNA-Purification-by-Centrifugation.html' title='DNA Recovery Kit'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 3476 :
										echo "<li><a href='/DNA-Gel-Purification-Extraction.html' title='DNA Gel Extraction, Gel Purification, Gel Purification Protcol'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case 3477 :
										echo "<li><a href='/Blood-Genomic-DNA-Isolation-Extraction.html' title='Blood DNA, Blood DNA Extraction, Blood DNA Kit'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									//case 3478 :
										//echo "<li><a href='/Tissue-Genomic-DNA-Isolation-Extraction.html' title='Isolation of Genomic DNA from Plant Tissue'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										//break;
								}
							}
						}
						echo "</ul>";
						
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
	
	case "21" : //list Western Blot
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Western-Blots.html' title='Western Blot Reagents and Products'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3912 :
								echo "<li><a href='/ECL-Reagents.html' title='Western Blotting Reagents'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3915 :
								echo "<li><a href='/HRP-Western-Blots.html' title='Horseradish Peroxidase'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3917 :
								echo "<li><a href='/Western-Blot-Chemicals.html' title='Western Blotting Chemicals'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 11255 :
								echo "<li><a href='/Protein-Markers-Standard.html' title='Protein Markers/Ladders'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
		
	case "22" : // list DNA Marker and Chemicals
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/DNA-Protein-Markers-Standards.html' title='DNA Markers, DNA Standards, Protein Markers, Protein Standards'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3916 :
								echo "<li><a href='/DNA-Marker-Standards-Protein-Marker.html' title='DNA Marker Standards, DNA Marker Ladders, Protein Marker, Protein Marker Broad Range'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3918 :
								echo "<li><a href='/Safe-DNA-Stains.html' title='Safe DNA Stain, Safe DNA Stain for Gel'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3919 :
								echo "<li><a href='/Polybrene-Proteinase-K-IPTG-DNA-Loading-Dye.html' title='Polybrene, Proteinase K, IPTG'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3920 :
								echo "<li><a href='/G418-Puromycin-Hygromycin-B-Blasticidin-Actinomycin-D.html' title='Cell Culture Antibiotics, Antibiotics for Cell Culture'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;

	case "23" : // list Cell Lysates
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Cell-Lysates.html' title='".$r['cname']."'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3907 :
								echo "<li><a href='/His-HA-Myc-GST-GFP-Tag-Lysates.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3908 :
								echo "<li><a href='/Tag-Antibodies-For-Cell-Lysates.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3909 :
								echo "<li><a href='/Cell-Lysate-Preparation.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3910 :
								echo "<li><a href='/Control-Lysates.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
	
	case "25" : // list Custom Services
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Custom-Services.html' title='Custom Services'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 3926 :
								echo "<li><a href='/Custom-Peptide-Synthesis.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3927 :
								echo "<li><a href='/Custom-Service-Monoclonal-Polyclonal-Antibody-Production.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3928 :
								echo "<li><a href='/Custom-Adenovirus.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3929 :
								echo "<li><a href='/Custom-Lentivirus-Services.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3930 :
								echo "<li><a href='/Custom-Retrovirus-Services.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3931 :
								echo "<li><a href='/Custom-Protein-Expression.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3932 :
								echo "<li><a href='/Site-Directed-Mutagenesis.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3933 :
								echo "<li><a href='/Custom-Plasmid-Purification-Services.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3934 :
								echo "<li><a href='/Used-Surplus-Equipment.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 3935 :
								echo "<li><a href='/Custom-Tet-Inducible-Expression.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 11260 :
								echo "<li><a href='/Primary-Cell-Immortalization.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 11857 :
								echo "<li><a href='/Mycoplasma-Detection-Decontamination.html' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 14052 :
								echo "<li><a href='/Custom-Services/custom-contaminants-detection.php?csn=$csn&amp;ssn=$ssnn' title='Custom $submnu_name Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
		
		case "26" : // list miRNA
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/miRNA-microRNA.html' title='miRNA/microRNA Products and miRNA/microRNA microarray Profiling Services'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<li>&nbsp;".$sr['sname']."&nbsp;<img src='/StemCell/images/arrow-down.png' width='9' height='6' /></li>";
						//display sub menus.
						if ($ssnn==11838){
							$submnu = "select * from chdcat where csn='$csn' and ssn='$ssnn' order by MID(dname,3,1) ASC, MID(dname,8) ASC";
							$submnu_res = mysql_query($submnu,$db);
							$submnu_rows = mysql_num_rows($submnu_res);
							echo "<ul>";
							if ($submnu_rows > 0){
								while ($submnu_r = mysql_fetch_array($submnu_res)){
									$submnu_name = $submnu_r['dname'];
									$dsnn = $submnu_r['sn'];
											if ($dsnn == 12288){
												echo "<li><a href=\"/3'UTR-miRNA-microRNA-Reporter-Cell-Line.html\" title='miRNA/microRNA Reporters'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}else{
												switch($dsnn){
													case 12251: echo"<li><a href='/GFP-miRNA-microRNA-Lentivirus-Vector-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
													case 12252: echo"<li><a href='/Tet-Inducible-miRNA-microRNA-Lentivirus-Vector-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
													case 12253: echo"<li><a href='/miRNA-microRNA-Adenovirus-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
													case 12254: echo"<li><a href='/miRNA-Inhibitor-Lentivirus-microRNA-Inhibitor-Lentivector-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
													case 12255: echo"<li><a href='/miRNA-microRNA-Inhibitor-Adenovirus-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
													case 14442: echo"<li><a href='/miRNA-microRNA-Expression-Vector-Human.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name";
													break;
												}
												echo"</a></li>";
											}
										
								}
							}
							echo"</ul>";
						}else{
							$submnu = "select * from chdcat where csn='$csn' and ssn='$ssnn' order by MID(dname,5) DESC";
							$submnu_res = mysql_query($submnu,$db);
							$submnu_rows = mysql_num_rows($submnu_res);
							echo "<ul>";
							if ($submnu_rows > 0){
								while ($submnu_r = mysql_fetch_array($submnu_res)){
									$submnu_name = $submnu_r['dname'];
									$dsnn = $submnu_r['sn'];
									switch ($ssnn){
										case 11839 :
											if ($dsnn == 12256){
												echo "<li><a href='/miRNA-qPCR-Mastermixes-microRNA-qPCR.html' title='miRNA/microRNA qPCR Mastermixes'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											if ($dsnn == 12257){
												echo "<li><a href='/miRNA-microRNA-cDNA-Synthesis-Kit.html' title='miRNA/microRNA Synthesis Kits'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											if ($dsnn == 12258){
												echo "<li><a href='/miRNA-Primers-microRNA-qPCR-Human.html' title='miRNA/microRNA Primers'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											if ($dsnn == 12259){
												echo "<li><a href='/miRNA-qPCR-Profiling-Kits.html' title='miRNA/microRNA Profiling Arrays'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											break;
											
										case 11840 :
											if ($dsnn == 12261){
												echo "<li><a href='/miRNA-Profiling-qPCR-microRNA-Profiling.html' title='Custom miRNA/microRNA Profiling Services'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											if ($dsnn == 12262){
												echo "<li><a href='/miRNA-qPCR-Profiling-microRNA-qPCR-Results.html'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											break;
											
										case 11850 :
											if ($dsnn == 12274){
												echo "<li><a href='/miRNA(microRNA)/miRNA-Database-login.html'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											break;
											
										case 11853 :
											if ($dsnn == 12277){
												echo "<li><a href='/miRNA/miRNAFAQ.php?csn=$csn&amp;ssn=$ssnn&amp;dsn=$dsnn'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
											}
											break;
									}
								}
							}
							echo "</ul>";
						}
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
			
	case "30"://list Stem Cells
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Stem-Cells.html' title='Stem Cell, iPSC, Induced Pluripotent Stem Cells, Embryonic Stem Cells'>&nbsp;".$r['cname']."</a></li>";
				$csn = $r['sn'];
				$ssql="select * from subcat where csn='".$r['sn']."'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						if ($ssnn == '6640' || $ssnn == '6641' || $ssnn == '11352'){
							continue;
						}
						echo "<li>&nbsp;".$sr['sname']."&nbsp;<img src='/StemCell/images/arrow-down.png' width='9' height='6' /></li>";
						//display sub menus.
						$submnu = "select * from chdcat where csn='$csn' and ssn='$ssnn'";
						$submnu_res = mysql_query($submnu,$db);
						$submnu_rows = mysql_num_rows($submnu_res);
						echo "<ul>";
						if ($submnu_rows > 0){
							while ($submnu_r = mysql_fetch_array($submnu_res)){
								$submnu_name = $submnu_r['dname'];
								$dsnn = $submnu_r['sn'];
								switch ($dsnn) {
									case "11717":
										echo "<li><a href='/iPSC-Factor-Proteins.html' title='iPSC Factor Proteins, Proteins for Pluripotent Stem Cell Induction'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11718":
										echo "<li><a href='/iPSC-Lentiviruses.html' title='Lentiviruses for Pluripotent Stem Cell Induction'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11719":
										echo "<li><a href='/iPSC-Adenoviruses.html' title='Adenoviruses for Pluripotent Stem Cell Induction'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11721":
										echo "<li><a href='/iPSC-Minicircle-DNA-iPSC-mc-DNA.html' title='minicircle-DNA and Plasmids for Pluripotent Stem Cell Induction'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
										
										
									case "11729":
										echo "<li><a href='/iPSC-Factor-Antibodies.html' title='Antibodies for iPSC Protein Detection'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11730":
										echo "<li><a href='/Stem-Cell-Antibodies.html' title='Antibodies for Stem Cell Detection'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
										
										
									case "11731":
										echo "<li><a href='/Primary-Cells.html' title='Primary Cell Lines'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11732":
										echo "<li><a href='/Embryonic-Stem-Cells.html' title='Embryonic Stem Cells'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11733":
										echo "<li><a href='/iPSCs.html' title='induced Pluripotent Stem Cells'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11734":
										echo "<li><a href='/iPSC-Feeder-Cells.html' title='Feeder Layer Cells'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
										
									case "11727":
										echo "<li><a href='/iPSC-Small-Molecules.html' title='Small Molecules to Enhance iPSC Generation'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11728":
										echo "<li><a href='/iPSC-Growth-Factors.html' title='Growth Factors to Differentiate iPSCs'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
										
									case "11723":
										echo "<li><a href='/iPSC-Characterization.html' title='Kits for Characterization of Potential iPSCs'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11724":
										echo "<li><a href='/iPSC-Stemporter-Stem-Cell-Gene-Reporters.html' title='Stem Cell Gene Reporters'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
												
									case "11725":
										echo "<li><a href='/iPSC-Medium.html' title='Media for iPSC Cell Culture'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
									case "11726":
										echo "<li><a href='/iPSC-Cell-Culture.html' title='Media Additives and Other Cell Culture Tools/Products'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
										
									case "14453":
										echo "<li><a href='/iPSC-Stem-Cells-Generation.html' title='Custom iPSC Generation Service'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
										break;
								}
							}
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
	
	case "29" : // list Immortalized Primary Cells
	case "43" : // list Normal Primary Cells
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				if ($csn==29){echo "<li><a href='/Immortalized-Primary-Cells.html' title='Immortalized Primary Cell Lines'>&nbsp;".$r['cname']."</a></li>";
				}elseif($csn==43){echo "<li><a href='/Primary-Cells.html' title='Primary Cell Culture, Normal Cells'>&nbsp;".$r['cname']."</a></li>";
				}
				$ssql="select * from subcat where csn='$csn' order by sname";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						$htmlname = str_replace(" / "," ",$submnu_name);
						$htmlname = str_replace(" ","-",$htmlname);
						$htmlname = str_replace("Immortalized","Immortalized-Primary",$htmlname);
						if ($csn==29){echo "<li><a href='/$htmlname.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
						}elseif($csn==43){
							$backname = str_replace(" ","-",$submnu_name);
							echo "<li><a href='/$backname.html' title='$submnu_name'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
			
	case "44" : // list Protein Purification
		$sql="select * from category where sn='$csn'";
		$res=mysql_query($sql,$db);
		$rw=mysql_num_rows($res);
		echo "<ul>";
		if ($rw>0){
			while ($r=mysql_fetch_array($res)){
				echo "<li><a href='/Protein-Purification.html' title='Protein Purification Resins'>&nbsp;".$r['cname']."</a></li>";
				$ssql="select * from subcat where csn='$csn'";
				$sres=mysql_query($ssql,$db);
				$srw=mysql_num_rows($sres);
				echo "<ul>";
				if ($srw>0){
					while ($sr=mysql_fetch_array($sres)){
						$ssnn = $sr['sn'];
						echo "<ul>";
						$submnu_name = $sr['sname'];
						switch ($ssnn){
							case 11865 :
								echo "<li><a href='/Ni-IDA-Resin-Agarose-Beads.html' title='Ni-IDA Purification Resins'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 11866 :
								echo "<li><a href='/Glutathione-Agarose-Beads-GST-Resin.html' title='Glutathione Purification Resins'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 11867 :
								echo "<li><a href='/Protein-A-Agarose-Resin.html' title='Protein A Purification Resins'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
							case 39164 :
								echo "<li><a href='/Enterokinase-Cleavage-Enzyme.html' title='Enterokinase Cleavage Protein'>&nbsp;&nbsp;&#8226;&nbsp;$submnu_name</a></li>";
								break;
						}
						echo "</ul>";
					}
				}
				echo "</ul>";
			}
		}
		echo "</ul>";
		break;
}

if (!isset($catno)){
	$catno = 0;
}

// Premade Adenovirus
if ($csn <> 11){
	$sql="select * from category where sn='11'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Adenovirus.html' title='Premade Adenoviruses'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}
// Antibodies
if ($csn <> 8){
	$sql="select * from category where sn='8'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Antibody.html' title='Antibody, Antibody Titer, Antibody Production, Antibody Definition'>&nbsp;<span>&raquo;</span> Antibodies</a></li>";
	}
	echo "</ul>";
}

// Cell Immortalization
if ($csn <> 15){
	$sql="select * from category where sn='15'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Cell-Immortalization.html' title='Cell Immortalization Products'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Cell Lysates
if ($csn <> 23){
	$sql="select * from category where sn=23";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Cell-Lysates.html' title='".$r['cname']."'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Custom Service
if ($csn <> 25){
	$sql="select * from category where sn=25";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Custom-Services.html' title='Custom Services'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

//  DNA Markers and Chemicals
if ($csn <> 22){
	$sql="select * from category where sn=22";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/DNA-Protein-Markers-Standards.html' title='DNA Markers, DNA Standards, Protein Markers, Protein Standards'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// DNA Purification
if ($csn <> 20){
	$sql="select * from category where sn=20";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Plasmid-DNA-Purification.html' title='DNA Purification Kits'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Immortalized Primary Cells
if ($csn <> 29){
	$sql="select * from category where sn=29";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Immortalized-Primary-Cells.html' title='Immortalized Primary Cell Lines'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Loading Controls
if ($csn <> 18){
	$sql="select * from category where sn=18";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Loading-Control-Antibodies.html' title='Loading Controls, Loading Control Western Blot, Loading Control Western Blot'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// miRNA
if ($csn <> 26){
	$sql="select * from category where sn=26";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/miRNA-microRNA.html' title='mirna/microRNA Products and Profiling Services'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// PCR, RT-PCR & qPCR
if ($csn <> 12){
	$sql="select * from category where sn='12'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/PCR-Taq-Polymerase-Reverse-Transcriptase-qPCR.html' title='PCR, RT-PCR and qPCR Mastermixes and Related Products '>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Premade Lentivirus
if ($csn <> 10){
	$sql="select * from category where sn='10'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Lentivirus.html' title='Premade Lentiviruses/Lentiviral Vectors'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Primary Cells
if ($csn <> 43){
	$sql="select * from category where sn=43";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Primary-Cells.html' title='Primary Cell Culture, Normal Cells'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Protein Purification
if ($csn <> 44){
	$sql="select * from category where sn=44";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Protein-Purification.html' title='Protein Purification Resins'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Stable Cell Line
if ($csn <> 45){
	$sql="select * from category where sn=45";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Stable-Cell-Line.html' title='Stable Cell Line'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Secondary Antibodies
if ($csn <> 19){
	$sql="select * from category where sn=19";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Secondary-Antibodies.html' title='Secondary Antibodies, Western Blot Secondary Antibody, Conjugated Antibody'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}
		
// siRNA
if ($csn <> 16){
	$sql="select * from category where sn='16'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/RNAi-shRNA-siRNA-Lentivirus-siRNA-shRNA-RNAi.html' title='siRNA Expression Kits and Custom Service'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// siRNA Lentivirus
if ($csn <> 9){
	$sql="select * from category where sn='9'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses.html' title='Premade/Pre-made siRNA Lentivectors'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Stem Cells
if ($csn <> 30){
	$sql="select * from category where sn=30";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Stem-Cells.html' title='Stem Cell, iPSC, Induced Pluripotent Stem Cells, Embryonic Stem Cells'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Tag Antibodies
if ($csn <> 17){
	$sql="select * from category where sn='17'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Tag-Antibody.html' title='Tag Antibodies'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Transfection
if ($csn <> 13){
	$sql="select * from category where sn='13'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Transfection-Reagent-Protocol-Efficiency.html' title='Transfection Reagents, Fugene, Lipofectamine'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Viral Expression
if ($csn <> 14){
	$sql="select * from category where sn='14'";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Adenovirus-Expression-Lentivirus-Expression.html' title='Viral Expression Systems'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}

// Western Blot
if ($csn <> 21){
	$sql="select * from category where sn=21";
	$res=mysql_query($sql,$db);
	$rw=mysql_num_rows($res);
	echo "<ul>";
	if ($rw>0){
		$r=mysql_fetch_array($res);
		echo "<li><a href='/Western-Blots.html' title='Western Blot, western blot protocol, western blot transfer, western blot trouble shooting'>&nbsp;<span>&raquo;</span> ".$r['cname']."</a></li>";
	}
	echo "</ul>";
}
?>